package com.wuzf.realm;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;

public interface Realm {
	
	//返回一个唯一的realm名字
	public String getName();
	
	//判断此Realm是否支持此Token
	boolean support(AuthenticationToken token);
	
	//根据token获取认证信息
	AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) throws AuthenticationException;
}
